Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for UIDs in strings as well on start_timeline #2497

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

coppolaemilio
Copy link
Collaborator

If you use an exported variable with a path to a file (let's say a timeline):

@export_file var timeline = ""

Godot will automatically use a UID path (something like uid://d0kqf1bb2ev0 instead of res://timeline.dtl) file to avoid having issues when moving that file in the future. This check in Dialogic is only expecting for the string res:// in the argument, so if you do something like Dialogic.start(timeline) it will fail to run.

The fix just adds a check for UID as well.

I suspect there are many other places where this is happening, so it would be good to replace all those instances of checking for "res://" to also check for "uid://"

@Jowan-Spooner
Copy link
Member

Thanks, this looks good to me.

@Jowan-Spooner Jowan-Spooner merged commit 2cfb62e into dialogic-godot:main Jan 6, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants